package com.ruoyi.animal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 动物照料对象 animal_care
 * 
 * @author gw
 * @date 2025-01-06
 */
public class AnimalCare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 饲养与照护ID */
    private Long careId;

    /** 动物ID */
    @Excel(name = "动物ID")
    private Long animalId;

//    动物编号
    private String animalNumber;

    /** 温度（单位：℃） */
    @Excel(name = "温度", readConverterExp = "单=位：℃")
    private Long temperature;

    /** 湿度（单位：%） */
    @Excel(name = "湿度", readConverterExp = "单=位：%")
    private Long humidity;

    /** 通风情况 */
    @Excel(name = "通风情况")
    private Integer ventilation;

    /** 饲料量（单位：g/天） */
    @Excel(name = "饲料量", readConverterExp = "单=位：g/天")
    private Long feedAmount;

    /** 水量（单位：mL/天） */
    @Excel(name = "水量", readConverterExp = "单=位：mL/天")
    private Long waterAmount;

    /** 空气质量 */
    @Excel(name = "空气质量")
    private Integer airQuality;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    /** 版本号，用于乐观锁控制 */
    private Integer version;

    public String getAnimalNumber() {
        return animalNumber;
    }

    public void setAnimalNumber(String animalNumber) {
        this.animalNumber = animalNumber;
    }

    public void setCareId(Long careId)
    {
        this.careId = careId;
    }

    public Long getCareId() 
    {
        return careId;
    }
    public void setAnimalId(Long animalId) 
    {
        this.animalId = animalId;
    }

    public Long getAnimalId() 
    {
        return animalId;
    }
    public void setTemperature(Long temperature) 
    {
        this.temperature = temperature;
    }

    public Long getTemperature() 
    {
        return temperature;
    }
    public void setHumidity(Long humidity) 
    {
        this.humidity = humidity;
    }

    public Long getHumidity() 
    {
        return humidity;
    }
    public void setVentilation(Integer ventilation) 
    {
        this.ventilation = ventilation;
    }

    public Integer getVentilation() 
    {
        return ventilation;
    }
    public void setFeedAmount(Long feedAmount) 
    {
        this.feedAmount = feedAmount;
    }

    public Long getFeedAmount() 
    {
        return feedAmount;
    }
    public void setWaterAmount(Long waterAmount) 
    {
        this.waterAmount = waterAmount;
    }

    public Long getWaterAmount() 
    {
        return waterAmount;
    }
    public void setAirQuality(Integer airQuality) 
    {
        this.airQuality = airQuality;
    }

    public Integer getAirQuality() 
    {
        return airQuality;
    }
    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("careId", getCareId())
            .append("animalId", getAnimalId())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("ventilation", getVentilation())
            .append("feedAmount", getFeedAmount())
            .append("waterAmount", getWaterAmount())
            .append("airQuality", getAirQuality())
            .append("recordDate", getRecordDate())
            .append("notes", getNotes())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .toString();
    }
}
